<!--
 * @Author: your name
 * @Date: 2021-06-21 13:01:57
 * @LastEditTime: 2021-07-25 00:16:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hairdressing_web\src\pages\setting\index.vue
-->
<template>
  <view>
    <view class="bgview">
      <uni-list :border="false" radius="0" class="hidden">
        <!--       <uni-list-item
          title="消息通知"
          showArrow
          :border="false"
          link
          to="/pages/notificationSettings/index"
        ></uni-list-item> -->
        <u-divider color="#fa3534" :use-slot="false" half-width="45%"></u-divider>
              <uni-list-item title="隐私" showArrow :border="false"></uni-list-item>
        <!-- <u-divider color="#fa3534" :use-slot="false" half-width="45%"></u-divider> -->
        <!--       <uni-list-item
          title="清除缓存"
          showArrow
          :border="false"
          rightText="1.3M"
          note="包括图片、数据等"
          clickable
          @click="show = true"
        ></uni-list-item> -->
            
        <u-divider color="#fa3534" :use-slot="false" half-width="45%"></u-divider>
              <uni-list-item title="帮助与反馈" showArrow :border="false" link to="/pages/help/index"></uni-list-item>
        <!-- <u-divider color="#fa3534" :use-slot="false" half-width="45%"></u-divider>
              <uni-list-item title="修改个人信息" showArrow :border="false" link to="/pages/help/index"></uni-list-item>
             -->
      </uni-list>
    </view>
    <u-modal v-model="show" :content="content" show-cancel-button @confirm="clearStorage()"></u-modal>
  </view>
</template>
<script>
export default {
  data() {
    return {
      show: false,
      content: '确定清除缓存？'
    }
  },
  methods: {
    clearStorage() {
      try {
        wx.clearStorageSync()
      } catch (e) {
        console.log(e)
      }
    }
  }
}
</script>
<style>
page {
  background-color: #f4f4f4;
}
</style>
<style scoped>
* {
  font-family: PingFang SC;
}
.bgview {
  margin-top: 24rpx;
}
uni-list-item >>> .uni-list-item {
  height: 140rpx;
}
uni-list-item >>> .uni-icons {
  font-size: 40rpx !important;
  color: #000 !important;
}
uni-list-item >>> .uni-list-item__content-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #2f2f2f;
}
</style>
